let i = 0

export class BaseView {
    constructor(pubsub) {
        this.pubsub = pubsub;

        this.pubsub.subscriber('test', this.render);

    }

    render(todos) {
        i += 1
        console.log(`视图变化${i}`, todos)
    }
}